﻿using System;

namespace Program12
{
    class Program
    {
        public enum Gender
        {
            男,
            女
        }

        //结构体
        public struct Person
        {
            public string Name;  //字段
            public Gender Gender;
            public int Age;
        }
            static void Main(string[] args)
            {
                Person person1;
                person1.Name = "小明";
                person1.Age =10;
                person1.Gender = Gender.男;

                Person person2;
                person2.Name = "小红";
                person2.Age = 20;
                person2.Gender = Gender.女;

                Console.WriteLine("姓名{0},性别{1},年龄{2}", person1.Name, person1.Gender, person1.Age);
                Console.WriteLine("姓名{0},性别{1},年龄{2}", person2.Name, person2.Gender, person2.Age);
            }
    }
}
